import * as CONSTANTS from "@/constants/index";


export default {
  [CONSTANTS.COMMIT_UPDATE_USER_CURRENTUSERDATA]: (state, payload) => {
    state["user"]['currentUserData'] = payload;
  },
  [CONSTANTS.COMMIT_UPDATE_USER_CURRENTUSERID]: (state, payload) => {
    state["user"]['currentUserId'] = payload;
  },
  [CONSTANTS.COMMIT_UPDATE_USER_CURRENTBABYID]: (state, payload) => {
    state["user"]['currentBabyId'] = payload;
  },
  [CONSTANTS.COMMIT_UPDATE_USER_CURRENTBABYDATA]: (state, payload) => {
    state["user"]['currentBabyData'] = payload;
  },
  [CONSTANTS.COMMIT_UPDATE_USER_BABYTRANSFORMEDBIRTHDAY]: (state, payload) => {
    state["user"]['babyTransformedBirthday'] = payload;
  },
  [CONSTANTS.COMMIT_UPDATE_USER_BABYAGESTAGE]: (state, payload) => {
    state["user"]['babyAgeStage'] = payload;
  },
  //当前日期与宝宝生日之间的天数
  [CONSTANTS.COMMIT_UPDATE_USER_BABYAGEDATEDURATION]: (state, payload) => {
    state["user"]['dateDuration'] = payload;
  },
  
};
